package com.jumi.microservice.entity;

    import java.math.BigDecimal;
    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.time.LocalDateTime;
    import java.io.Serializable;
    import java.util.Map;

    import com.fasterxml.jackson.annotation.JsonFormat;
    import com.jumi.microservice.enums.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
* <p>
    * 用户业绩表
    * </p>
*
* @author 要挑客户管理团队
* @since 2020-07-14
*/
    @ApiModel(value="用户业绩表", description="用户业绩表")
    public class JmUserSales  {


            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            @ApiModelProperty(value = "业绩拥有人的用户id")
    private Integer uid;

            @ApiModelProperty(value = "拥有人的等级")
    private Level level;

            @ApiModelProperty(value = "下单人用户id")
    private Integer buyerId;

            @ApiModelProperty(value = "下单人用户的等级")
    private Level buyerLevel;

            @ApiModelProperty(value = "1.正常，0.失效")
    private SalesStatus status;

            @ApiModelProperty(value = "订单id")
    private Integer orderId;

            @ApiModelProperty(value = "订单单号")
    private String orderSn;

            @ApiModelProperty(value = "订单实际支付金额")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "商品id")
    private Integer gid;

            @ApiModelProperty(value = "商品名")
    private String goodsName;

            @ApiModelProperty(value = "商品实际支付价格")
    private BigDecimal payGoodsPrice;

            @ApiModelProperty(value = "商品原价")
    private BigDecimal originGoodsPrice;

            @ApiModelProperty(value = "商品主图")
    private String goodsImage;

            @ApiModelProperty(value = "备注")
    private String backup;

            @ApiModelProperty(value = "是否是2.0迁移的数据")
    private CommonEnum isQianyi;

            @ApiModelProperty(value = "是否删除：1=是，0=否")
    private CommonEnum isDel;

    private ConsumerType consumerType;

            @ApiModelProperty(value = "更新时间")

    private LocalDateTime updateTime;

            @ApiModelProperty(value = "创建时间")

    private LocalDateTime createTime;

    public ConsumerType getConsumerType() {
        return consumerType;
    }

    public void setConsumerType(ConsumerType consumerType) {
        this.consumerType = consumerType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    public Level getBuyerLevel() {
        return buyerLevel;
    }

    public void setBuyerLevel(Level buyerLevel) {
        this.buyerLevel = buyerLevel;
    }

    public SalesStatus getStatus() {
        return status;
    }

    public void setStatus(SalesStatus status) {
        this.status = status;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getPayGoodsPrice() {
        return payGoodsPrice;
    }

    public void setPayGoodsPrice(BigDecimal payGoodsPrice) {
        this.payGoodsPrice = payGoodsPrice;
    }

    public BigDecimal getOriginGoodsPrice() {
        return originGoodsPrice;
    }

    public void setOriginGoodsPrice(BigDecimal originGoodsPrice) {
        this.originGoodsPrice = originGoodsPrice;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public String getBackup() {
        return backup;
    }

    public void setBackup(String backup) {
        this.backup = backup;
    }

    public CommonEnum getIsQianyi() {
        return isQianyi;
    }

    public void setIsQianyi(CommonEnum isQianyi) {
        this.isQianyi = isQianyi;
    }

    public CommonEnum getIsDel() {
        return isDel;
    }

    public void setIsDel(CommonEnum isDel) {
        this.isDel = isDel;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
